package com.qining618.common.core.weixin.bean;

import lombok.Data;

/**
 * @author flt
 * @date 2019-09-25
 */
@Data
public class BaseResult {

    private static final String SUCCESS_CODE = "0";

    private String errcode;
    private String errmsg;

    public boolean isSuccess() {
        return errcode == null || errcode.isEmpty() || errcode.equals(SUCCESS_CODE);
    }
}
